This fic is where Charlie is recruited to Atlantis to help Rodney with some maths or other and Don insists on going along as well. They're out there for quite some time - at least months - and I remember Don thinking about being able to bring Alan out there because he was a city planner. The fic was from Don's POV.